<?php

namespace App\Policies;

use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use Spatie\Permission\Models\Role;

class RolePolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }
    public function edit(Role $role,Role $model){
        return auth()->user()->hasRole('webmaster');
    }
    public function delete(Role $role,Role $model){
        return auth()->user()->hasRole('webmaster');
    }
}
